-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python integration #317
Python integration #317
Conversation
CI needs to be updated |
let ARCtrl_generate (rootPath: string) = | ||
generateIndexFileContent classes | ||
|> Array.reduce (fun a b -> a + "\n" + b) | ||
|> writePyIndexfile rootPath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
build/ProjectInfo.fs
Outdated
@@ -30,8 +30,9 @@ let gitHome = $"https://github.com/{gitOwner}" | |||
|
|||
let projectRepo = $"https://github.com/{gitOwner}/{project}" | |||
|
|||
let pkgDir = "dist/pkg" | |||
let netPkgDir = "dist/pkg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no relative path?
pyproject.toml
Outdated
name = "ARCtrl" | ||
version = "1.0.0" | ||
description = "Library for management of Annotated Research Contexts (ARCs) using an in-memory representation and runtimer agnostic contract systems." | ||
authors = ["Heinrich Lukas Weil <[email protected]>"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pytests/arc_table_tests.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this file be on .gitignore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Badly worded. I mean should this file be pushed or was it just for testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the whole folder and setup file. Was there for initial testing
pytests/composite_header_tests.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
@@ -160,7 +160,7 @@ module ArcTableExtensions = | |||
|
|||
member this.ToCompressedJsonString(?spaces) : string = | |||
let spaces = defaultArg spaces 0 | |||
let stringTable = Dictionary() | |||
let stringTable = Dictionary() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very important change 😄
src/ISA/ISA/Fable.fs
Outdated
let sort (a : 'T []) = | ||
#if FABLE_COMPILER_PYTHON | ||
a |> List.ofArray |> List.sort |> Array.ofList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what? 😮
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This 100% requires a comment explaining this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be fixed now.
@@ -75,6 +75,26 @@ module ResizeArray = | |||
a.Count = 0 | |||
|
|||
module HashCodes = | |||
|
|||
open Fable.Core | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment explaining this. Is this related to an open issue on Fable-compiler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will open up an issue on this in Fable. Some problem with Hash overrides and Record Types.
testpy.cmd
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this file be committed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
@@ -282,9 +282,19 @@ let tests_ArcAssay = testList "ArcAssay" [ | |||
for j = 0 to cells.Length - 1 do | |||
t.Values.[(j,i)] <- cells.[j] | |||
let f() = ArcAssay.toJsonString a | |||
#if FABLE_COMPILER_JAVASCRIPT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better:
let expectedMs =
#if FABLE_COMPILER_JAVASCRIPT
5000
#endif
#if FABLE_COMPILER_PYTHON
100000
#endif
#if !FABLE_COMPILER
2500
#endif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will move all of this into a performance checking project anyways.
including python release
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@nfdi4plants/arctrl", | |||
"version": "1.1.0+6309e03", | |||
"version": "1.2.0+19d850e", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use short semver without metadata
Done, will be updated with next version tick. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets go! 🚀
build
andtest
targets forPython
Python